//
//  ProductDetailCell3.m
//  FloatClouds
//
//  Created by 黄威 on 16/9/9.
//  Copyright © 2016年 黄威. All rights reserved.
//

#import "ProductDetailCell3.h"

@implementation ProductDetailCell3

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.labelOftype = [[BaseLabel alloc]init];
        self.labelOftype.textColor = [UIColor grayColor];
        self.labelOftype.text = @"    香烟类型:";
        self.labelOftype.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.labelOftype];
        
        self.labelOftypeInput = [[BaseLabel alloc]init];
        self.labelOftypeInput.textColor = [UIColor blackColor];
        self.labelOftypeInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.labelOftypeInput];
        
        
        self.tar = [[BaseLabel alloc]init];
        self.tar.textColor = [UIColor grayColor];
        self.tar.text = @"    焦油含量:";
        self.tar.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview: self.tar];
        
        self.tarInput = [[BaseLabel alloc]init];
        self.tarInput.textColor = [UIColor blackColor];
        self.tarInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.tarInput];
        
        
        self.nico = [[BaseLabel alloc]init];
        self.nico.textColor = [UIColor grayColor];
        self.nico.text = @"尼古丁含量:";
        self.nico.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview: self.nico];
        
        self.nicoInput = [[BaseLabel alloc]init];
        self.nicoInput.textColor = [UIColor blackColor];
        self.nicoInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.nicoInput];
        
        self.co = [[BaseLabel alloc]init];
        self.co.textColor = [UIColor grayColor];
        self.co.text = @"      CO含量:";
        self.co.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview: self.co];
        
        self.coInput = [[BaseLabel alloc]init];
        self.coInput.textColor = [UIColor blackColor];
        self.coInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.coInput];
        
        self.cigarettelong = [[BaseLabel alloc]init];
        self.cigarettelong.textColor = [UIColor grayColor];
        self.cigarettelong.text = @"    香烟长度:";
        self.cigarettelong.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview: self.cigarettelong];
        
        self.cigarettelongInput = [[BaseLabel alloc]init];
        self.cigarettelongInput.textColor = [UIColor blackColor];
        self.cigarettelongInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.cigarettelongInput];
        
        
        self.packing = [[BaseLabel alloc]init];
        self.packing.textColor = [UIColor grayColor];
        self.packing.text = @"    包装形式:";
        self.packing.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview: self.packing];
        
        self.packingInput = [[BaseLabel alloc]init];
        self.packingInput.textColor = [UIColor blackColor];
        self.packingInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.packingInput];
        
        self.number = [[BaseLabel alloc]init];
        self.number.textColor = [UIColor grayColor];
        self.number.text = @"    单盒支数:";
        self.number.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview: self.number];
        
        self.numberInput = [[BaseLabel alloc]init];
        self.numberInput.textColor = [UIColor blackColor];
        self.numberInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.numberInput];
        
        self.productStaus = [[BaseLabel alloc]init];
        self.productStaus.textColor = [UIColor grayColor];
        self.productStaus.text = @"    产品状态:";
        self.productStaus.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview: self.productStaus];
        
        self.productStausInput = [[BaseLabel alloc]init];
        self.productStausInput.textColor = [UIColor blackColor];
        self.productStausInput.font = [UIFont fontWithName:@"Helvetica" size:17];
        [self.contentView addSubview:self.productStausInput];
        
        
    }
    
    return self;
}

- (void)layoutSubviews{
    
    [super layoutSubviews];
    
    self.labelOftype.frame = CGRectMake(10, 0, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.labelOftypeInput.frame = CGRectMake(self.bounds.size.width *0.4 +10, 0, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    
    
    
    self.tar.frame = CGRectMake(10, self.bounds.size.height *0.12, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.tarInput.frame = CGRectMake(self.bounds.size.width *0.4 + 10, self.bounds.size.height *0.12, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    
   
    
    
    
    self.nico.frame = CGRectMake(10, self.bounds.size.height *0.12 * 2, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.nicoInput.frame = CGRectMake(self.bounds.size.width *0.4 + 10, self.bounds.size.height *0.12 * 2, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    
    
    self.co.frame = CGRectMake(10, self.bounds.size.height *0.12 * 3, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.coInput.frame = CGRectMake(self.bounds.size.width *0.4 + 10, self.bounds.size.height *0.12 * 3, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    
    self.cigarettelong.frame = CGRectMake(10, self.bounds.size.height *0.12 * 4, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.cigarettelongInput.frame = CGRectMake(self.bounds.size.width *0.4 + 10, self.bounds.size.height *0.12 * 4, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    
    self.packing.frame = CGRectMake(10, self.bounds.size.height *0.12 * 5, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.packingInput.frame = CGRectMake(self.bounds.size.width *0.4 + 10, self.bounds.size.height *0.12 * 5, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    
    
    self.number.frame = CGRectMake(10, self.bounds.size.height *0.12 * 6, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.numberInput.frame = CGRectMake(self.bounds.size.width *0.4 + 10, self.bounds.size.height *0.12 * 6, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    self.productStaus.frame = CGRectMake(10, self.bounds.size.height *0.12 * 7, self.bounds.size.width *0.4, self.bounds.size.height *0.12);
    self.productStausInput.frame = CGRectMake(self.bounds.size.width *0.4 + 10, self.bounds.size.height *0.12 * 7, self.bounds.size.width *0.3, self.bounds.size.height * 0.12);
    
}


@end
